<template>
    <div id="title">
        <div @click="BackClick">
            <img src="../../static/icon/返回.svg">
            <span>返回</span>
        </div>
        <h3><slot></slot></h3>
    </div>
</template>
<script>
export default {
    methods:{
        BackClick(){
            history.back();
        }
    }
}
</script>
<style scoped>
    #title{
        text-align: center;
        background-color: black;
        width: 100%;
        height: 12.2vw;
        color: white;
        line-height: 12.2vw;
        position: fixed;
        left: 0;
        top: 0;
    }
    #title div{
         position: absolute; 
         display: flex;
         font-size: 3.92vw;
    }
     img{
        width: 6.16vw;
        height: 12.2vw;
        padding-left: 1.12vw;
    } 
</style>